package com.imooc.order.message;

import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.stream.annotation.EnableBinding;
import org.springframework.cloud.stream.annotation.StreamListener;
import org.springframework.stereotype.Component;

/**
 * StreamReceiver
 *
 * @author leon.cheng
 * @date 2018/12/11 17:02
 **/
@Component
@Slf4j
@EnableBinding(StreamClient.class)
public class StreamReceiver {
    @StreamListener(StreamClient.OUTPUT)
    public void process(String message){
        log.info("StreamReceiver:{}",message);
    }
}
